<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class RewardHistory extends Model
{
    protected  $table='reward_time_history';

    protected $fillable = [
        'user_id',
        'project_id',
        'reward_time',
        'desc'
    ];

    public function project() {
        return $this->belongsTo('App\Models\Project', 'project_id', 'id');
    }

    public function user() {
        return $this->belongsTo('App\User', 'user_id', 'id');
    }
}
